package com.hairline.controller;

import com.hairline.bean.vo.BaseRespVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;

@RestController
public class WxStorageController {
    @Autowired
    AdminStorageController adminStorageController;

    @PostMapping("/wx/storage/upload")
    public BaseRespVo storageUpload(MultipartFile file) throws IOException {
        return adminStorageController.storageCreate(file);
    }
}
